package com.zxy.supplier_system.server.controller

import com.zxy.supplier_system.server.service.MarketSettlementPlanDetailPreviewService
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController()
@RequestMapping("markets/settlementPlans/rules")
class MarketSettlementPlanDetailPreviewController(
    private val marketSettlementPlanDetailPreviewService: MarketSettlementPlanDetailPreviewService
) {

    @GetMapping("{ruleId}/year/{year}/month/{month}/detail/preview")
    fun previewDetail(@PathVariable ruleId: Int, @PathVariable month: Int, @PathVariable year: Int,): List<MarketShoppingGuideSalaryPlanDetailPreviewController.MarketShoppingGuideSalaryPlanRuleDetailPreviewResponse> {
        return marketSettlementPlanDetailPreviewService.previewDetail(ruleId, month, year,)
    }

}